package com.cl.cloud.binlog;

import com.cl.cloud.binlog.properties.BinLogProperty;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @description: mysql binlog监听服务
 * @author: liuzijian
 * @time: 2022-07-08 10:39
 */
@Slf4j
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan({"com.cl.cloud", "com.cl.core"})
@EnableConfigurationProperties({BinLogProperty.class})
public class BinlogApplication {

    public static void main(String[] args) {
        SpringApplication.run(BinlogApplication.class, args);
        log.info("Binlog启动完毕");
    }

}
